﻿using System.Text.Json.Serialization;

namespace Sirius.Entity
{
    //表情表态对象
    public class MessageReaction
    {
        //用户id
        [JsonPropertyName("user_id")]
        public string UserId { get; set; }

        //频道ID
        [JsonPropertyName("guild_id")]
        public string Guild_Id { get; set; }

        //子频道ID
        [JsonPropertyName("channel_id")]
        public string Channel_Id { get; set; }

        //表情表态对象
        [JsonPropertyName("target")]
        public ReactionTarget Target { get; set; }

        //表态所用表情
        [JsonPropertyName("emoji")]
        public Emoji Emoji { get; set; }
    }

    //表态对象
    public class ReactionTarget
    {
        //表态对象ID
        [JsonPropertyName("id")]
        public string Id { get; set; }

        //表态对象类型,参考 ReactionTargetType
        [JsonPropertyName("type")]
        public ReactionTargetType Type { get; set; }
    }

    //表态对象类型
    public enum ReactionTargetType
    {
        //消息
        MESSAGE = 0,

        //帖子
        POSTS = 1,

        //评论
        COMMENT = 2,

        //回复
        ECHO = 3,
    }
}